﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace CameraSystem
{
    public class CameraManager:ICameraManager
    {
        Dictionary<CameraType, CameraItem> cameras = new Dictionary<CameraType, CameraItem>();
        Dictionary<CameraEffectType, Type> cameraEffects = new Dictionary<CameraEffectType, Type>();

        public void Init()
        {
            cameras.Add(CameraType.Main, new CameraItem(Camera.main));
            cameraEffects.Add(CameraEffectType.RadiaBlur, typeof(RadiaBlurEffect));


        }
        public Type GetCameraEffectType(CameraEffectType type)
        {
            if (cameraEffects.ContainsKey(type))
            {
                return cameraEffects[type];
            }
            return null;
        }

        public CameraItem GetCamera(CameraType type)
        {
            if (cameras.ContainsKey(type))
            {
                return cameras[type];
            }
            return null;
        }
    }
}
